package com.lzgcoding.onlineshopapp.room.entity

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "Items")
data class ItemEntity(
    @PrimaryKey(autoGenerate = true) val id: Int = 0,
    val title: String,
    val description: String,
    val price: Double,
    val oldPrice: Double,
    val rating: Double,
    val review: Int,
    val offPercent: String,
    val picUrls: List<String>,   // 存储 JSON 字符串
    val sizes: List<String>,     // 存储 JSON 字符串
    val colors: List<String>     // 存储 JSON 字符串
)